package com.xc.service;

import com.xc.pojo.Dept;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 部门管理
 */
@Transactional(rollbackFor = Exception.class)
public interface DeptService {
    public abstract List<Dept> selectAll();

    public abstract Dept selectById(Integer id);

    public abstract int deleteById(Integer id);

    public abstract int  insertDept(Dept dept);

    public abstract int updateDept(Dept dept);
}
